<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>L2LB: Referência à estrutura nlb_affinity_hash_table</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li class="current"><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="files.html"><span>Ficheiros</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="functions.html"><span>Campos&nbsp;de&nbsp;dados</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referência à estrutura nlb_affinity_hash_table</h1><!-- doxytag: class="nlb_affinity_hash_table" -->Tabela HASH para gerenciar a afinidade entre um cliente e um servidor.  
<a href="#_details">Mais...</a>
<p>
<code>#include &lt;<a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>&gt;</code>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Campos de Dados</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct <a class="el" href="structnlb__affinity.html">nlb_affinity</a> **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnlb__affinity__hash__table.html#3b81f4ad54e2194b66071822fc6eee30">hash_table</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Tabela HASH.  <a href="#3b81f4ad54e2194b66071822fc6eee30"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnlb__affinity__hash__table.html#bada4a3fdb52853aa9a77a8a06ee3e05">entries</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Numero de registros ocupados na tabela HASH.  <a href="#bada4a3fdb52853aa9a77a8a06ee3e05"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnlb__affinity__hash__table.html#4b4c628441e1bec9a60ca2681ba2d732">entry_size</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sizeof(struct nlb_affinity)  <a href="#4b4c628441e1bec9a60ca2681ba2d732"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnlb__affinity__hash__table.html#ea5d3c3b2391e381f77fa332ded0aac9">hash_mask</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Capacidade da tabela HASH.  <a href="#ea5d3c3b2391e381f77fa332ded0aac9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnlb__affinity__hash__table.html#2745f2fc4e97344df0eb1367cfa3d7c9">hash_random</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">rwlock_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnlb__affinity__hash__table.html#9fa3a269a8196531f64c310ee77d67ed">rwlock</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Usada para garantir atomicidade nas operacoes de leitura/escritra no <a class="el" href="structcluster.html" title="Cluster.">cluster</a>.  <a href="#9fa3a269a8196531f64c310ee77d67ed"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Descrição detalhada</h2>
Tabela HASH para gerenciar a afinidade entre um cliente e um servidor. 
<p>Definido na linha <a class="el" href="hash-afinidades_8h-source.html#l00033">33</a> do ficheiro <a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>.</p>
<hr><h2>Documentação dos campos e atributos</h2>
<a class="anchor" name="3b81f4ad54e2194b66071822fc6eee30"></a><!-- doxytag: member="nlb_affinity_hash_table::hash_table" ref="3b81f4ad54e2194b66071822fc6eee30" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structnlb__affinity.html">nlb_affinity</a>** <a class="el" href="structnlb__affinity__hash__table.html#3b81f4ad54e2194b66071822fc6eee30">nlb_affinity_hash_table::hash_table</a><code> [read]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tabela HASH. 
<p>

<p>Definido na linha <a class="el" href="hash-afinidades_8h-source.html#l00038">38</a> do ficheiro <a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>.</p>

<p>Referenciado por <a class="el" href="hash-afinidades_8h-source.html#l00165">hash_add()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00113">hash_exit()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00126">hash_grow()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00088">hash_init()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00209">hash_lookup()</a> e <a class="el" href="hash-afinidades_8h-source.html#l00235">hash_remove_node_affinities()</a>.</p>

</div>
</div><p>
<a class="anchor" name="bada4a3fdb52853aa9a77a8a06ee3e05"></a><!-- doxytag: member="nlb_affinity_hash_table::entries" ref="bada4a3fdb52853aa9a77a8a06ee3e05" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="structnlb__affinity__hash__table.html#bada4a3fdb52853aa9a77a8a06ee3e05">nlb_affinity_hash_table::entries</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Numero de registros ocupados na tabela HASH. 
<p>

<p>Definido na linha <a class="el" href="hash-afinidades_8h-source.html#l00043">43</a> do ficheiro <a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>.</p>

<p>Referenciado por <a class="el" href="hash-afinidades_8h-source.html#l00165">hash_add()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00088">hash_init()</a> e <a class="el" href="hash-afinidades_8h-source.html#l00235">hash_remove_node_affinities()</a>.</p>

</div>
</div><p>
<a class="anchor" name="4b4c628441e1bec9a60ca2681ba2d732"></a><!-- doxytag: member="nlb_affinity_hash_table::entry_size" ref="4b4c628441e1bec9a60ca2681ba2d732" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structnlb__affinity__hash__table.html#4b4c628441e1bec9a60ca2681ba2d732">nlb_affinity_hash_table::entry_size</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
sizeof(struct nlb_affinity) 
<p>

<p>Definido na linha <a class="el" href="hash-afinidades_8h-source.html#l00048">48</a> do ficheiro <a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>.</p>

<p>Referenciado por <a class="el" href="hash-afinidades_8h-source.html#l00165">hash_add()</a> e <a class="el" href="hash-afinidades_8h-source.html#l00088">hash_init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ea5d3c3b2391e381f77fa332ded0aac9"></a><!-- doxytag: member="nlb_affinity_hash_table::hash_mask" ref="ea5d3c3b2391e381f77fa332ded0aac9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="structnlb__affinity__hash__table.html#ea5d3c3b2391e381f77fa332ded0aac9">nlb_affinity_hash_table::hash_mask</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Capacidade da tabela HASH. 
<p>

<p>Definido na linha <a class="el" href="hash-afinidades_8h-source.html#l00053">53</a> do ficheiro <a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>.</p>

<p>Referenciado por <a class="el" href="hash-afinidades_8h-source.html#l00165">hash_add()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00077">hash_alloc()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00126">hash_grow()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00088">hash_init()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00209">hash_lookup()</a> e <a class="el" href="hash-afinidades_8h-source.html#l00235">hash_remove_node_affinities()</a>.</p>

</div>
</div><p>
<a class="anchor" name="2745f2fc4e97344df0eb1367cfa3d7c9"></a><!-- doxytag: member="nlb_affinity_hash_table::hash_random" ref="2745f2fc4e97344df0eb1367cfa3d7c9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 <a class="el" href="structnlb__affinity__hash__table.html#2745f2fc4e97344df0eb1367cfa3d7c9">nlb_affinity_hash_table::hash_random</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definido na linha <a class="el" href="hash-afinidades_8h-source.html#l00055">55</a> do ficheiro <a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>.</p>

<p>Referenciado por <a class="el" href="hash-afinidades_8h-source.html#l00069">hash()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00126">hash_grow()</a> e <a class="el" href="hash-afinidades_8h-source.html#l00088">hash_init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9fa3a269a8196531f64c310ee77d67ed"></a><!-- doxytag: member="nlb_affinity_hash_table::rwlock" ref="9fa3a269a8196531f64c310ee77d67ed" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">rwlock_t <a class="el" href="structnlb__affinity__hash__table.html#9fa3a269a8196531f64c310ee77d67ed">nlb_affinity_hash_table::rwlock</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Usada para garantir atomicidade nas operacoes de leitura/escritra no <a class="el" href="structcluster.html" title="Cluster.">cluster</a>. 
<p>

<p>Definido na linha <a class="el" href="hash-afinidades_8h-source.html#l00060">60</a> do ficheiro <a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a>.</p>

<p>Referenciado por <a class="el" href="hash-afinidades_8h-source.html#l00165">hash_add()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00088">hash_init()</a>, <a class="el" href="hash-afinidades_8h-source.html#l00209">hash_lookup()</a> e <a class="el" href="hash-afinidades_8h-source.html#l00235">hash_remove_node_affinities()</a>.</p>

</div>
</div><p>
<hr>A documentação para esta estrutura foi gerada a partir do seguinte ficheiro:<ul>
<li><a class="el" href="hash-afinidades_8h-source.html">hash-afinidades.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Sep 10 23:05:56 2008 para L2LB por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
